package com.qf.business.coupons.controller;

import com.qf.business.coupons.service.CouponsService;
import com.qf.commons.domain.base.R;
import com.qf.commons.domain.coupon.vo.CouponTemplateVo;
import com.qf.commons.web.base.BaseController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author new
 * @date 2023/9/5 18:57
 */
@RequestMapping("/coupon/template")
@RestController
@Slf4j
@Tag(name = "优惠券模板接口")
public class CouponsTemplateController extends BaseController<CouponsService> {

    @Operation(description = "新增优惠券模板接口")
    @PostMapping("/insert")
    public R insert(@Validated @RequestBody CouponTemplateVo couponTemplateVo){
        log.debug("优惠券模板创建【couponTemplate create】 -->{}", couponTemplateVo);
        return R.succ();
    }

}
